/**
 * SpringMVC restful 风格
 * 登陆页面控制器，控制关于登陆页面的一些业务逻辑操作
 * @author yanwl
 * @date 2014-11-17
 */
package com.chnbst.bstyun.controller.admin;


import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class LoginController {
	/**
	 * 注入 业务逻辑层
	 */
	
	/**
	 * http://xxx.com/login
	 * get请求 默认返回网站首页
	 */
	@RequestMapping(value="login",method=RequestMethod.GET)
	public ModelAndView login(HttpServletRequest request){
		ModelAndView mav = new ModelAndView();
		mav.setViewName("admin/index");
//		mav.setViewName("admin/login");
		return mav;
	}	
}
